package com.example.tse.rbhttpservice.service.member.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.member.model.MemberOrderGetConsignee;
//import com.rbyair.services.member.model.MemberOrderGetDelivery;
//import com.rbyair.services.member.model.MemberOrderGetPayment;
//import com.rbyair.services.member.model.MemberOrderGetCoupon;
//import com.rbyair.services.member.model.MemberOrderGetGoods;
//import com.rbyair.services.member.model.MemberOrderGetTotal;
//import com.rbyair.services.member.model.MemberOrderGetLogistic;
/**
* 获取我的订单详情，展示订单详细信息用，或再次支付用
* @author wliu
* edit tse
*/
public class MemberOrderGetResponse extends RudderResponse{

private String orderId = "";


private MemberOrderGetConsignee consignee = new MemberOrderGetConsignee();


private MemberOrderGetDelivery delivery = new MemberOrderGetDelivery();


private MemberOrderGetPayment payment = new MemberOrderGetPayment();


private MemberOrderGetCoupon coupon = new MemberOrderGetCoupon();


private List<MemberOrderGetGoods> goods = new ArrayList<MemberOrderGetGoods>();


private MemberOrderGetTotal total = new MemberOrderGetTotal();


private String orderSn = "";


private String status = "";


private String addTime = "";


private String payTime = "";


private MemberOrderGetLogistic logistic = new MemberOrderGetLogistic();


private String source = "";


/**
* @return orderId
*/
public String getOrderId() {
return this.orderId;
}

/**
* @return orderId
*/
public void setOrderId(String orderId) {
this.orderId = orderId;
}
/**
methodName    OrderId
type          String
name          orderId
defaultType   ""
*/

/**
* @return consignee
*/
public MemberOrderGetConsignee getConsignee() {
return this.consignee;
}

/**
* @return consignee
*/
public void setConsignee(MemberOrderGetConsignee consignee) {
this.consignee = consignee;
}
/**
methodName    Consignee
type          MemberOrderGetConsignee
name          consignee
defaultType   new MemberOrderGetConsignee()
*/

/**
* @return delivery
*/
public MemberOrderGetDelivery getDelivery() {
return this.delivery;
}

/**
* @return delivery
*/
public void setDelivery(MemberOrderGetDelivery delivery) {
this.delivery = delivery;
}
/**
methodName    Delivery
type          MemberOrderGetDelivery
name          delivery
defaultType   new MemberOrderGetDelivery()
*/

/**
* @return payment
*/
public MemberOrderGetPayment getPayment() {
return this.payment;
}

/**
* @return payment
*/
public void setPayment(MemberOrderGetPayment payment) {
this.payment = payment;
}
/**
methodName    Payment
type          MemberOrderGetPayment
name          payment
defaultType   new MemberOrderGetPayment()
*/

/**
* @return coupon
*/
public MemberOrderGetCoupon getCoupon() {
return this.coupon;
}

/**
* @return coupon
*/
public void setCoupon(MemberOrderGetCoupon coupon) {
this.coupon = coupon;
}
/**
methodName    Coupon
type          MemberOrderGetCoupon
name          coupon
defaultType   new MemberOrderGetCoupon()
*/

/**
* @return goods
*/
public List<MemberOrderGetGoods> getGoods() {
return this.goods;
}

/**
* @return goods
*/
public void setGoods(List<MemberOrderGetGoods> goods) {
this.goods = goods;
}
/**
methodName    Goods
type          List<MemberOrderGetGoods>
name          goods
defaultType   new ArrayList<MemberOrderGetGoods>()
*/

/**
* @return total
*/
public MemberOrderGetTotal getTotal() {
return this.total;
}

/**
* @return total
*/
public void setTotal(MemberOrderGetTotal total) {
this.total = total;
}
/**
methodName    Total
type          MemberOrderGetTotal
name          total
defaultType   new MemberOrderGetTotal()
*/

/**
* @return orderSn
*/
public String getOrderSn() {
return this.orderSn;
}

/**
* @return orderSn
*/
public void setOrderSn(String orderSn) {
this.orderSn = orderSn;
}
/**
methodName    OrderSn
type          String
name          orderSn
defaultType   ""
*/

/**
* @return status
*/
public String getStatus() {
return this.status;
}

/**
* @return status
*/
public void setStatus(String status) {
this.status = status;
}
/**
methodName    Status
type          String
name          status
defaultType   ""
*/

/**
* @return addTime
*/
public String getAddTime() {
return this.addTime;
}

/**
* @return addTime
*/
public void setAddTime(String addTime) {
this.addTime = addTime;
}
/**
methodName    AddTime
type          String
name          addTime
defaultType   ""
*/

/**
* @return payTime
*/
public String getPayTime() {
return this.payTime;
}

/**
* @return payTime
*/
public void setPayTime(String payTime) {
this.payTime = payTime;
}
/**
methodName    PayTime
type          String
name          payTime
defaultType   ""
*/

/**
* @return logistic
*/
public MemberOrderGetLogistic getLogistic() {
return this.logistic;
}

/**
* @return logistic
*/
public void setLogistic(MemberOrderGetLogistic logistic) {
this.logistic = logistic;
}
/**
methodName    Logistic
type          MemberOrderGetLogistic
name          logistic
defaultType   new MemberOrderGetLogistic()
*/

/**
* @return source
*/
public String getSource() {
return this.source;
}

/**
* @return source
*/
public void setSource(String source) {
this.source = source;
}
/**
methodName    Source
type          String
name          source
defaultType   ""
*/

/**


    private static void filterFor(MemberOrderGetConsigneeProvince member) {
        if (member.getRegionId() == null) {
            member.setRegionId("");
        }
        if (member.getRegionName() == null) {
            member.setRegionName("");
        }
    }

    private static void filterFor(MemberOrderGetConsigneeCity member) {
        if (member.getRegionId() == null) {
            member.setRegionId("");
        }
        if (member.getRegionName() == null) {
            member.setRegionName("");
        }
    }

    private static void filterFor(MemberOrderGetConsigneeDistrict member) {
        if (member.getRegionId() == null) {
            member.setRegionId("");
        }
        if (member.getRegionName() == null) {
            member.setRegionName("");
        }
    }

    private static void filterFor(MemberOrderGetConsignee member) {
        if (member.getConsigneeId() == null) {
            member.setConsigneeId("");
        }
        if (member.getConsigneeName() == null) {
            member.setConsigneeName("");
        }
        if (member.getConsigneeTel() == null) {
            member.setConsigneeTel("");
        }
        if (member.getConsigneeCard() == null) {
            member.setConsigneeCard("");
        }
        if (member.getProvince() == null) {
            member.setProvince(new MemberOrderGetConsigneeProvince());
        } else {
            filterFor(member.getProvince());
        }
        if (member.getCity() == null) {
            member.setCity(new MemberOrderGetConsigneeCity());
        } else {
            filterFor(member.getCity());
        }
        if (member.getDistrict() == null) {
            member.setDistrict(new MemberOrderGetConsigneeDistrict());
        } else {
            filterFor(member.getDistrict());
        }
        if (member.getAddress() == null) {
            member.setAddress("");
        }
        if (member.getIsDefault() == null) {
            member.setIsDefault("");
        }
    }

    private static void filterFor(MemberOrderGetDelivery member) {
        if (member.getDeliveryId() == null) {
            member.setDeliveryId("");
        }
        if (member.getName() == null) {
            member.setName("");
        }
    }

    private static void filterFor(MemberOrderGetPayment member) {
        if (member.getPaymentId() == null) {
            member.setPaymentId("");
        }
        if (member.getName() == null) {
            member.setName("");
        }
    }

    private static void filterFor(MemberOrderGetCoupon member) {
        if (member.getCouponId() == null) {
            member.setCouponId("");
        }
        if (member.getName() == null) {
            member.setName("");
        }
        if (member.getPrice() == null) {
            member.setPrice("");
        }
        if (member.getEndTime() == null) {
            member.setEndTime("");
        }
    }

    private static void filterFor(MemberOrderGetGoods member) {
        if (member.getProductId() == null) {
            member.setProductId("");
        }
        if (member.getName() == null) {
            member.setName("");
        }
        if (member.getPrice() == null) {
            member.setPrice("");
        }
        if (member.getQuantity() == null) {
            member.setQuantity("");
        }
        if (member.getThumbnailPic() == null) {
            member.setThumbnailPic("");
        }
        if (member.getSubTotal() == null) {
            member.setSubTotal("");
        }
        if (member.getSpec() == null) {
            member.setSpec("");
        }
    }

    private static void filterFor(MemberOrderGetTotal member) {
        if (member.getGoodsPrice() == null) {
            member.setGoodsPrice("");
        }
        if (member.getDiscount() == null) {
            member.setDiscount("");
        }
        if (member.getTotalTax() == null) {
            member.setTotalTax("");
        }
        if (member.getTotalFee() == null) {
            member.setTotalFee("");
        }
        if (member.getOrderPrice() == null) {
            member.setOrderPrice("");
        }
    }

    private static void filterFor(MemberOrderGetLogistic member) {
        if (member.getLogisticName() == null) {
            member.setLogisticName("");
        }
        if (member.getLogisticNo() == null) {
            member.setLogisticNo("");
        }
    }

    public static void filter(MemberOrderGetResponse member) {
        if (member.getOrderId() == null) {
            member.setOrderId("");
        }
        if (member.getConsignee() == null) {
            member.setConsignee(new MemberOrderGetConsignee());
        } else {
            filterFor(member.getConsignee());
        }
        if (member.getDelivery() == null) {
            member.setDelivery(new MemberOrderGetDelivery());
        } else {
            filterFor(member.getDelivery());
        }
        if (member.getPayment() == null) {
            member.setPayment(new MemberOrderGetPayment());
        } else {
            filterFor(member.getPayment());
        }
        if (member.getCoupon() == null) {
            member.setCoupon(new MemberOrderGetCoupon());
        } else {
            filterFor(member.getCoupon());
        }
        if (member.getGoods() == null) {
            member.setGoods(new ArrayList<MemberOrderGetGoods>());
        } else {
            for (MemberOrderGetGoods item : member.getGoods()) {
                filterFor(item);
            }
        }
        if (member.getTotal() == null) {
            member.setTotal(new MemberOrderGetTotal());
        } else {
            filterFor(member.getTotal());
        }
        if (member.getOrderSn() == null) {
            member.setOrderSn("");
        }
        if (member.getStatus() == null) {
            member.setStatus("");
        }
        if (member.getAddTime() == null) {
            member.setAddTime("");
        }
        if (member.getPayTime() == null) {
            member.setPayTime("");
        }
        if (member.getLogistic() == null) {
            member.setLogistic(new MemberOrderGetLogistic());
        } else {
            filterFor(member.getLogistic());
        }
        if (member.getSource() == null) {
            member.setSource("");
        }
    }

*/

}
